//
//  XLAlertView.h
//  FD
//
//  Created by xiaofang wang on 2019/1/8.
//  Copyright © 2019年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^AlertResult)(NSInteger index);


@interface XLAlertView : UIView
/** 1.左边按钮 2.右边按钮 */
@property (nonatomic,copy) AlertResult resultIndex;
/**1-19确定按钮文字颜色*/
@property (nonatomic, strong) UIColor *sureButtonTitleColor;
- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message sureBtn:(NSString *)sureTitle cancleBtn:(NSString *)cancleTitle;

- (void)showXLAlertView;


#pragma mark - 只要一个按钮
@end

NS_ASSUME_NONNULL_END
/**
 //1-8弹框
 XLAlertView *xxx = [[XLAlertView alloc] initWithTitle:@"提示" message:@"选择支付方式" sureBtn:@"线上支付" cancleBtn:nil];
 xxx.resultIndex = ^(NSInteger index) {
 
 };
 [xxx showXLAlertView];
 
 */
